package com.daoeping.service.impl;

import java.util.List;

import com.daoeping.dao.Usr_userDAO;
import com.daoeping.data.Usr_user;
import com.daoeping.domain.JsonData;
import com.daoeping.domain.Page;
import com.daoeping.domain.TableData;
import com.daoeping.service.Usr_userService;

public class Usr_userServiceImpl implements Usr_userService {
	private Usr_userDAO usr_userDAO;
	
	public Usr_userDAO getUsr_userDAO() {
		return usr_userDAO;
	}

	public void setUsr_userDAO(Usr_userDAO usr_userDAO) {
		this.usr_userDAO = usr_userDAO;
	}

	
	@Override
	public boolean findUsr_userByNameAndPass(Usr_user usr_user) {
		return usr_userDAO.findUsr_userByNameAndPass(usr_user);
	}

	@Override
	public boolean addUsr_user(Usr_user usr_user) {
		return usr_userDAO.insertData(usr_user);
	}

	@Override
	public boolean findUsr_userByName(Usr_user usr_user) {
		return usr_userDAO.findUsr_userByName(usr_user);
	}

	@Override
	public JsonData findAllUsr_userNotFriendByPage(Page page,TableData tableData, Usr_user usr_user) {
		return usr_userDAO.findAllUsr_userNotFriendByPage(page, tableData, usr_user);
	}

	
}
